//
//  NSString+LXL.m
//  same
//
//  Created by 朱建鹏 on 16/8/3.
//  Copyright © 2016年 朱建鹏. All rights reserved.
//

#import "NSString+LXL.h"

@implementation NSString (LXL)

- (NSString *)addCache{
   return [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)lastObject] stringByAppendingPathComponent:[self lastPathComponent]];

}

- (NSString *)addDocument{

       return [[NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES)lastObject] stringByAppendingPathComponent:[self lastPathComponent]];
    
}

- (NSString *)addTemporary{

   return [NSTemporaryDirectory() stringByAppendingPathComponent:[self lastPathComponent]];
    
}


@end
